package com.itheima.reggie.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fasterxml.jackson.databind.ser.Serializers;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
    public interface EmployeeMapper extends BaseMapper<Employee> {
        //根据用户名查询
        Employee findByUsername(String username);

       //根据name模糊查询
      List<Employee> findByName(String name);

      //保存员工
        void save(Employee employee);
      //通过id查询
        Employee findById(long id);
      //保存
      void update(Employee employee);
}
